﻿
    using System;
    using System.Web.UI.HtmlControls;
    using System.Web.UI.WebControls;

    public partial class SendEmail : PageBase
    {


        protected void Page_Load(object sender, EventArgs e)
        {
            if (!base.IsPostBack)
            {
                PubFunction.BindMemLevelSelect(this.sltMemLevelID, true);
                PubFunction.BindShopSelect(base._UserShopID, this.sltShop, true);
                if ((string.IsNullOrEmpty(PubFunction.curParameter.EmailAdress) || string.IsNullOrEmpty(PubFunction.curParameter.EmailPwd)) || (string.IsNullOrEmpty(PubFunction.curParameter.EmailSMTP) || string.IsNullOrEmpty(PubFunction.curParameter.EnterpriseEmailPort.ToString())))
                {
                    this.isEmail.Value = "1";
                    this.btnChoose.Attributes.Add("disabled", "disabled");
                    this.txtCustomEmail.Attributes.Add("disabled", "disabled");
                    this.txtTitle.Attributes.Add("disabled", "disabled");
                    this.txtEmailContent.Attributes.Add("disabled", "disabled");
                    this.btnSendEmail.Attributes.Add("disabled", "disabled");
                    this.btnReset.Attributes.Add("disabled", "disabled");
                }
            }
        }
    }


